/*
 *****************************************************************************
 * Copyright (C) 2005-2014 UC Mobile Limited. All Rights Reserved
 * File			: G9SDKError.h
 *
 * Description	: SDK Error 错误类
 *
 * Author		: wanghuai@ucweb.com
 *
 * History		: Creation, 15/10/31, wanghuai@ucweb.com, Create the file
 ******************************************************************************
 **/

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, G9SDKCode)
{
    G9SDKCodeSuccess = 1,    ///< 操作成功
    G9SDKCodeNetworkError,   ///< 网络错误
    G9SDKCodeBizError,       ///< 业务错误
    G9SDKNotInit,            ///< SDK未初始化
    G9SDKInitFail,           ///< 初始化失败
    G9SDKLoginCancel,        ///< 用户取消登录
};

@interface G9SDKError : NSObject
@property (nonatomic, assign) G9SDKCode code;          //错误类型
@property (nonatomic, copy) NSString *errorMessage;    //错误提示
@end
